<?php /* @var $calendar Calendar */?>
<?php echo __('Are you shure?')?>
<?php if($calendar->getSeqId() == ''): ?>
    <?php echo __('Event will be removed permanently.'); ?>
    <?php echo button_to(__('delete')
                        , 'calendar/delete?id='.$calendar->getId()
                        , array ('post' => true
                                , 'class' => 'sf_admin_action_delete'))?>
<?php else: ?>
    <?php echo format_number_choice(
    '[1]This event is repeated one time.|(1,+Inf]This sequence has %count% events',
    array('%count%' => $calendar->getTimesToRepeat()),
    $calendar->getTimesToRepeat()
  )?>
<?php echo __('Click "delete all" to delete all this sequence events, or "delete" to delete only this event.')?>
    <?php echo button_to(__('delete')
                        , 'calendar/delete?id='.$calendar->getId()
                        , array ('post' => true
                                , 'class' => 'sf_admin_action_delete'))?>
    <?php echo button_to(__('Delete all')
                        , 'calendar/deleteall?id='.$calendar->getId()
                        , array ('post' => true
                                , 'class' => 'sf_admin_action_delete'))?>
<?php endif; ?>

